import React, { Component } from 'react';
import {
  Link,
} from 'react-router-dom';
import Routes from '../config/router';

export default class TopicList extends Component {
  componentDidMount() {
    // do something here
  }

  render() {
    return [
      <div key='bar'>
        <Link to="/">首页</Link>,
        <Link to="/detail">详情页</Link>
      </div>,
      <Routes key='router' />,
    ]
  }
}
